package com.woniuxy.dao;

import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    /**
     *登录功能的查找方法
     */
    @Select("select * from user where username=#{username}")
    User findByUserName(String username);

    /**
     * 用户列表-权限管理用
     */
    @Select("select * from user")
    List<User> findAll();
}
